package com.maodou.core.datastore.db

import androidx.room.Database
import androidx.room.RoomDatabase
import com.maodou.core.datastore.db.dao.AccountDao
import com.maodou.core.datastore.db.dao.CacheDao
import com.maodou.core.datastore.db.dao.UserCacheDao
import com.maodou.core.datastore.db.table.AccountEntry
import com.maodou.core.datastore.db.table.CacheEntry
import com.maodou.core.datastore.db.table.UserCacheEntry

@Database(
    entities = [
        CacheEntry::class,
        UserCacheEntry::class,
        AccountEntry::class
               ],
    version = 3,
    exportSchema = false,
)
abstract class AppDatabase : RoomDatabase() {
    abstract fun cacheDao(): CacheDao
    abstract fun userCacheDao(): UserCacheDao
    abstract fun accountDao(): AccountDao
}